package com.daffodil.workable.service;

import java.util.List;

import com.daffodil.core.entity.Query;
import com.daffodil.workable.entity.WorkablePlan;

/**
 * -执行计划Service接口
 * @author yweijian
 * @date 2022-04-28
 * @version 1.0
 * @description
 */
public interface IWorkablePlanService {

    /**
     * -分页查询执行计划列表
     * @param query 执行计划
     * @return 执行计划
     */
    public List<WorkablePlan> selectWorkablePlanList(Query<WorkablePlan> query);

    /**
     * -查询执行计划
     * @param id 执行计划ID
     * @return 执行计划
     */
    public WorkablePlan selectWorkablePlanById(String id);

    /**
     * -新增执行计划
     * @param workablePlan
     */
    public void insertWorkablePlan(WorkablePlan workablePlan);

    /**
     * -修改执行计划
     * @param workablePlan
     */
    public void updateWorkablePlan(WorkablePlan workablePlan);

    /**
     * -删除执行计划
     * @param ids
     */
    public void deleteWorkablePlanByIds(String[] ids);

    /**
     * -启动执行计划
     * @param ids
     */
    public void stratupWorkablePlanByIds(String[] ids);

    /**
     * -停止执行计划
     * @param ids
     */
    public void shutdownWorkablePlanByIds(String[] ids);

}
